package com.kede.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kede.domain.ConfigDomain;
import com.kede.service.ConfigService;
import com.kede.mapper.ConfigMapper;
import org.springframework.stereotype.Service;

/**
* @author 11856
* @description 针对表【sy_config(系统配置)】的数据库操作Service实现
* @createDate 2023-06-01 16:39:03
*/
@Service
public class ConfigServiceImpl extends ServiceImpl<ConfigMapper, ConfigDomain>
    implements ConfigService{

    @Override
    public ConfigDomain getOneByName(String name){
        LambdaQueryWrapper<ConfigDomain> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(ConfigDomain::getName,name);
        ConfigDomain one = getOne(queryWrapper);
        return one;
    }

}




